/*package com.rykj.qxj.rest;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.rykj.qxj.server.model.entity.ApiResponseParam;
import com.rykj.qxj.server.services.ApiResponseParamService;
import com.rykj.qxj.util.Result;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j;

@Log4j
@RestController
@RequestMapping("/v1/apiManage/responseParam")
@Api(tags="开发者中心-API管理")
public class ApiResponseParamController {
	
	@Autowired
	private ApiResponseParamService apiResponseParamService;
	@PostMapping("/save")
    @ApiOperation(value="保存响应参数",notes ="保存请响应参数")
    @ApiImplicitParams({
         @ApiImplicitParam(name = "joinStr", value = "连接方式",required = true,paramType = "query"),
         @ApiImplicitParam(name = "requestStr", value = "请求参数sql",required = true,paramType = "query"),
         @ApiImplicitParam(name = "responseStr", value = "响应参数sql",paramType = "query"),
 })
    public Result save(@RequestBody List<ApiResponseParam> apiResponseParamList,
    		@RequestParam(value = "joinStr") String joinStr,
            @RequestParam(value = "requestStr") String requestStr,
            @RequestParam(value = "responseStr") String responseStr){
		if(apiResponseParamList==null ||apiResponseParamList.size()<0) {
			return Result.failure("数据格式错误,请检查");
		}
        try{
        	String sql = apiResponseParamService.saveResponseParamAndGeneSql(apiResponseParamList,joinStr,requestStr,responseStr);
            return new Result(true,"保存成功",sql);
        }catch (Exception e){
            log.error("保存失败", e);
            return new Result(false, "保存失败");
        }
    }
	@DeleteMapping("/delete")
	@ApiOperation(value="删除响应参数信息",notes ="删除响应参数信息")
	@ApiImplicitParams({
         @ApiImplicitParam(name = "id", value = "响应参数id主键",required = true,paramType = "query")
	})
	public Result delete(@RequestParam Integer id){
		if(null==id) {
			return Result.failure("删除信息时,id不能为空");
		}
		try{
			apiResponseParamService.deleteResponseParam(id);
			return new Result(true,"删除成功");
		}catch (Exception e){
			log.error("保存失败", e);
			return new Result(false, "删除失败");
		}
	}
}
*/